package com.cskaoyan.service.admin;

import com.cskaoyan.bean.*;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.common.User;

import java.util.List;

public interface UserService {
    CommonData<MarketUser> query(String username, BasePageInfo info);

    CommonData<MarketUser> list(BasePageInfo basePageInfo, String username, String mobile);

    MarketUser queryUserById(Integer id);

    int updateUser(MarketUser user);

    CommonData<MarketAddress> addressList(BasePageInfo basePageInfo, String name, Integer userId);

    CommonData<MarketCollect> collectList(BasePageInfo basePageInfo, Integer userId, Integer valueId);

    CommonData<MarketFootprint> footprintList(BasePageInfo basePageInfo, Integer userId, Integer valueGoodsId);

    CommonData<MarketSearchHistory> searchHistoryList(BasePageInfo basePageInfo, Integer userId, String keyword);

    CommonData<MarketFeedback> feedbackList(BasePageInfo basePageInfo, String username, Integer id);

    WxUserOrder queryOrder();

    List<MarketUser> queryUserByUsername(String username);

    List<MarketUser> queryUserByMobile(String mobile);

    void add(MarketUser user);
}
